<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>ComObjValue()</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link href="../static/theme.css" rel="stylesheet" type="text/css" />
<script src="../static/content.js" type="text/javascript"></script>
</head>
<body>

<h1>ComObjValue() <span class="ver">[v1.0.91+]</span></h1>

<p>Retrieves the value or pointer stored in a COM wrapper object.</p>

<pre class="Syntax">Value := ComObjValue(ComObject)</pre>

<h3>Parameters</h3>
<dl>

  <dt>Value</dt>
  <dd><p>A 64-bit signed integer.</p></dd>

  <dt>ComObject</dt>
  <dd><p>A wrapper object containing a COM object or typed value.</p></dd>

</dl>

<h3>General Remarks</h3>
<p>This function is not intended for general use.</p>
<p>Calling ComObjValue is equivalent to <code><i>variant</i>.llVal</code>, where <i>ComObject</i> is treated as a <a href="http://msdn.microsoft.com/en-us/library/ms221627.aspx">VARIANT structure</a>. Any script which uses this function must be aware what <a href="ComObjType.htm">type of value</a> the wrapper object contains and how it should be treated. For instance, if an interface pointer is returned, <a href="ObjAddRef.htm">Release</a> should not be called, but <a href="ObjAddRef.htm">AddRef</a> may be required depending on what the script does with the pointer.</p>

<h3>Related</h3>
<p><a href="ComObjType.htm">ComObjType</a>, <a href="ComObjCreate.htm">ComObjCreate</a>, <a href="ComObjGet.htm">ComObjGet</a>, <a href="ComObjActive.htm">ComObjActive</a></p>

</body>
</html>
